<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="renderer" content="webkit"/>
    <title>Title</title>
    <script src="index.js"></script>
</head>
<body>
    <p><input type="button" onclick="createCode()" value="生成验证码" /></p>
    <p><input type="text" id="checkCode" /></p>
    <hr />
    <p>输入验证码：<input type="text" id="inputCode" /> <input type="button" onclick="validate()" value="验证" /></p>
</body>
</html>